import { createRouter, createWebHashHistory } from 'vue-router'
import Login from "@/views/Login";
import Main from "@/views/Main";
import Student from "@/views/Student";
import Teacher from "@/views/Teacher";
import Class from "@/views/Class";
import Course from "@/views/Course";
import ClassCourse from "@/views/ClassCourse";

const routes = [
  {
    path: '/',
    name: 'Home',
    redirect: {name: "Main"}
  },
  {
    path: '/main',
    name: 'Main',
    component: Main
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/student',
    name: 'Student',
    component: Student
  },
  {
    path: '/teacher',
    name: 'Teacher',
    component: Teacher
  },
  {
    path: '/class',
    name: 'Class',
    component: Class
  },
  {
    path: '/course',
    name: 'Course',
    component: Course
  },
  {
    path: '/classCourse',
    name: 'ClassCourse',
    component: ClassCourse
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
